import urls from '../api/config'
const prefix=urls.APP_NAME;
const sets=()=>{
    console.log('我是哦set')
}
const setStorage=(key,value,type)=>{
	let name = `${prefix}-${key}`;
	type.setItem(name, JSON.stringify(value))
}
const getStorage=(key,type)=> {
	let name  = `${prefix}-${key}`;
	var value=	type.getItem(name)
	if (value && value!=='undefined') {
	      return JSON.parse(value)
	}else{
		return ''
	}
}

export default {
	sets,setStorage,getStorage
}

